<?php
/**
 * Created by swagger_zxd.
 * User: zxd
 * Date: 2017/11/16
 * Time: 10:11
 */

namespace App\Scope;


use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;

class CheckScope implements Scope{


    public function apply(Builder $builder, Model $model){
        // TODO: Implement apply() method.
        return $builder->where('name','!=','航班2');
    }

}